{temp('admin/head')}
<!-- 以下是art弹窗js -->
<script src="{$adstyle}/js/art/artDialog.source.js?skin=opera"></script>
<script src="{$adstyle}/js/art/plugins/iframeTools.source.js"></script>

</head>
<style>
/*兼职时间样式*/
.icheck{
	margin: 7px 0;
}
.icheck i{
	display: inline-block; 
	width:9px; 
	height: 12px; 
	background:url(http://pic2.58.com/ui7/job/hire/pt-job.png) 0 -83px no-repeat;
}
.icheck th,.icheck td{ 
	width: 50px; 
	line-height:24px; 
	font-weight:normal;
	font-size:12px; 
	border: 1px solid #d9d9d9; 
	text-align: center; 
	color: #585858;
}
.icheck th{
	background: #f4f4f4;
}
</style>
<body class="page-body">
		
		{temp('admin/left')}
			
			{temp('admin/top')}
			
			{if(@$rs['id'])}
			<div class="row">
				<div class="col-sm-12">
					
					<div class="panel panel-default">
						<div class="panel-heading">
							<h3 class="panel-title">{$tit}</h3>
						</div>
						<div class="panel-body">
							
							<form role="form" class="form-horizontal">
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="name">姓名</label>
									<div class="col-sm-10">
										<input type="text" class="form-control" id="name" value="{if(@$rs['name'])}{$rs['name']}{/if}">
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="touxiang">头像</label>
									<div class="col-sm-10">
										<img src="{if(@$rs['touxiang'])}{photo({$rs['touxiang']})}{/if}" id="ii" width="48" />
                                    	<input type="hidden" class="form-control" id="touxiang" value="{if(@$rs['touxiang'])}{$rs['touxiang']}{/if}" />
                                    	<button type="button" class="btn btn-gray" onClick="sctp('touxiang','ii')">点击上传</button>
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="sex">性别</label>
									<div class="col-sm-10">
										<div class="radio">
											<label>
												<input type="radio" name="sex" value="1" {if(@$rs['sex'] != 2)}checked{/if}>
												男
											</label>
										</div>
										<div class="radio">
											<label>
												<input type="radio" name="sex" value="2" {if(@$rs['sex'] == 2)}checked{/if}>
												女
											</label>
										</div>
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="minzu">民族</label>
									<div class="col-sm-10">
										<input type="text" class="form-control" id="minzu" value="{if(@$rs['minzu'])}{$rs['minzu']}{/if}">
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="cstime">出生日期</label>
									<div class="col-sm-10">
										<input type="text" class="form-control datepicker" id="cstime" value="{if(@$rs['cstime'])}{code(echo date('Y-m-d',$rs['cstime']))}{/if}" data-format="yyyy-mm-dd" data-start-date="" data-end-date="-1d">
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label">现居住地</label>
									<div class="col-sm-10">
										<div class="col-sm-2">
										<select class="form-control" id="xsheng" onchange="gbdz(this.value,'xshi','xqu')">
											<option value="0">请选择</option>
						        			{if(@$sh)}
						        			{foreach($sh as $k=>$v)}
						        			<option {if(@$rs['xsheng'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
										</select>
										</div>
										<div class="col-sm-2">
						        		<select class="form-control" id="xshi" onchange="gbdz(this.value,'xqu','')">
						        			<option value="0">请选择</option>
						        			{if(@$shi)}
						        			{foreach($shi as $k=>$v)}
						        			<option {if(@$rs['xshi'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
						        		</div>
						        		<div class="col-sm-2">
						        		<select class="form-control" id="xqu">
						        			<option value="0">请选择</option>
						        			{if(@$qu)}
						        			{foreach($qu as $k=>$v)}
						        			<option {if(@$rs['xqu'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
						        		</div>
						        		<div class="col-sm-4">
                                    	<input type="text" class="form-control" id="xsq" value="{if(@$rs['xsq'])}{$rs['xsq']}{/if}"/>
										</div>
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label">户籍地址</label>
									<div class="col-sm-10">
										<div class="col-sm-2">
										<select class="form-control" id="hksheng" onchange="gbdz(this.value,'hkshi','hkqu')">
											<option value="0">请选择</option>
						        			{if(@$sh)}
						        			{foreach($sh as $k=>$v)}
						        			<option {if(@$rs['hksheng'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
										</select>
										</div>
										<div class="col-sm-2">
						        		<select class="form-control" id="hkshi" onchange="gbdz(this.value,'xqu','')">
						        			<option value="0">请选择</option>
						        			{if(@$hkshi)}
						        			{foreach($hkshi as $k=>$v)}
						        			<option {if(@$rs['hkshi'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
						        		</div>
						        		<div class="col-sm-2">
						        		<select class="form-control" id="hkqu">
						        			<option value="0">请选择</option>
						        			{if(@$hkqu)}
						        			{foreach($hkqu as $k=>$v)}
						        			<option {if(@$rs['hkqu'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
						        		</div>
						        		<div class="col-sm-4">
                                    	<input type="text" class="form-control" id="hk" value="{if(@$rs['hk'])}{$rs['hk']}{/if}"/>
										</div>
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="zhuanye">主修专业</label>
									<div class="col-sm-10">
										<select class="form-control" id="zhuanye">
						        			<option value="0">请选择</option>
						        			{if(@$zhuany)}
						        			{foreach($zhuany as $k=>$v)}
						        			<option {if(@$rs['zhuanye'] == $v['id'])}selected="selected"{/if} value="{$v['id']}">{$v['name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="xueli">最高学历</label>
									<div class="col-sm-10">
										<select class="form-control" id="xueli">
						        			{if(@$_xueli)}
						        			{foreach($_xueli as $k=>$v)}
						        			<option {if(@$rs['xueli'] == $k)}selected="selected"{/if} value="{$k}">{$v}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="shengao">身高</label>
									<div class="col-sm-10">
										<input type="text" class="form-control" id="shengao" value="{if(@$rs['shengao'])}{$rs['shengao']}{/if}">
										<span>以cm为单位</span>
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="tizhong">体重</label>
									<div class="col-sm-10">
										<input type="text" class="form-control" id="tizhong" value="{if(@$rs['tizhong'])}{$rs['tizhong']}{/if}">
										<span>以kg为单位</span>
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="email">电子邮箱</label>
									<div class="col-sm-10">
										<input type="text" class="form-control" id="email" value="{if(@$rs['email'])}{$rs['email']}{/if}">
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="phone">手机号码</label>
									<div class="col-sm-10">
										<input type="text" class="form-control" id="phone" value="{if(@$rs['phone'])}{$rs['phone']}{/if}">
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="jieshao">自我介绍</label>
									<div class="col-sm-10">
										<textarea class="form-control" id="jieshao">{if(@$rs['jieshao'])}{$rs['jieshao']}{/if}</textarea>
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								{if($rs['zt'] == 1)}
								<div class="form-group">
									<label class="col-sm-2 control-label" for="shenfen">我的身份</label>
									<div class="col-sm-10">
										<div class="radio">
											<label>
												<input type="radio" name="shenfen" value="0" {if(@$rs['shenfen'] != 1)}checked{/if}>
												在校学生
											</label>
										</div>
										<div class="radio">
											<label>
												<input type="radio" name="shenfen" value="1" {if(@$rs['shenfen'] == 1)}checked{/if}>
												社会人才
											</label>
										</div>
									</div>
								</div>
								{else}
								<div class="form-group">
									<label class="col-sm-2 control-label" for="gzjy">工作经验</label>
									<div class="col-sm-10">
										<select class="form-control" id="gzjy">
						        			{if(@$_gzjy)}
						        			{foreach($_gzjy as $k=>$v)}
						        			<option {if(@$rs['gzjy'] == $k)}selected="selected"{/if} value="{$k}">{$v}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
									</div>
								</div>
								{/if}
								
								{if($rs['zt'] != 1)}
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="title">简历标题</label>
									<div class="col-sm-10">
										<input type="text" class="form-control" id="title" value="{if(@$rs['title'])}{$rs['title']}{/if}">
									</div>
								</div>
								{/if}
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="zhiwei">职位类别</label>
									<div class="col-sm-10">
										<select class="form-control" id="zwlb" onchange="gbzw(this.value)">
						        			<option value="0">请选择</option>
						        			{if(@$zwlb)}
						        			{foreach($zwlb as $k=>$v)}
						        			<option {if(@$rs['zwlb'] == $v['id'])}selected="selected"{/if} value="{$v['id']}">{$v['name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
										<select class="form-control" id="zhiwei">
						        			<option value="0">请选择</option>
						        			{if(@$zhiwei)}
						        			{foreach($zhiwei as $k=>$v)}
						        			<option {if(@$rs['zhiwei'] == $v['id'])}selected="selected"{/if} value="{$v['id']}">{$v['name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="money">期望薪资</label>
									<div class="col-sm-10">
										<div class="col-sm-2">
											<input type="text" class="form-control" id="money" value="{if(@$rs['money'])}{$rs['money']}{/if}">
										</div>
										<div class="col-sm-2">
											<select id="danwei" class="form-control">
	                                    		{if(@$_danwei)}
							        			{foreach($_danwei as $k=>$v)}
							        			<option {if(@$rs['danwei'] == $v)}selected="selected"{/if}>{$v}</option>
							        			{/foreach}
							        			{/if}
	                                    	</select>
                                    	</div>
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label">求职地区</label>
									<div class="col-sm-10">
										<div class="col-sm-2">
										<select class="form-control" id="qzsheng" onchange="gbdz(this.value,'qzshi','qzqu')">
											<option value="0">请选择</option>
						        			{if(@$sh)}
						        			{foreach($sh as $k=>$v)}
						        			<option {if(@$rs['qzsheng'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
										</select>
										</div>
										<div class="col-sm-2">
						        		<select class="form-control" id="qzshi" onchange="gbdz(this.value,'qzqu','')">
						        			<option value="0">请选择</option>
						        			{if(@$qzshi)}
						        			{foreach($qzshi as $k=>$v)}
						        			<option {if(@$rs['qzshi'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
						        		</div>
						        		<div class="col-sm-2">
						        		<select class="form-control" id="qzqu">
						        			<option value="0">请选择</option>
						        			{if(@$qzqu)}
						        			{foreach($qzqu as $k=>$v)}
						        			<option {if(@$rs['qzqu'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
						        			{/foreach}
						        			{/if}
						        		</select>
						        		</div>
						        		<div class="col-sm-4">
						        			<input type="text" class="form-control" id="qzsq" value="{if(@$rs['qzsq'])}{$rs['qzsq']}{/if}">
						        		</div>
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="gzjl">工作经历</label>
									<div class="col-sm-10">
										<textarea class="form-control" id="gzjl">{if(@$rs['gzjl'])}{$rs['gzjl']}{/if}</textarea>
									</div>
								</div>
								
								{if($rs['zt'] == 1)}
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="youxiao">有效期</label>
									<div class="col-sm-10">
										<select id="youxiao" class="form-control">
                                    		{if(@$_youxiao)}
						        			{foreach($_youxiao as $k=>$v)}
						        			<option {if(@$rs['youxiao'] == $v)}selected="selected"{/if}>{$v}</option>
						        			{/foreach}
						        			{/if}
                                    	</select>
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="jztime">兼职时间</label>
									<div class="col-sm-10">
										<table class="icheck">
                                    		<thead>
                                    			<tr>
                                    				<th>&nbsp;</th>
                                    				<th>星期一</th>
                                    				<th>星期二</th>
                                    				<th>星期三</th>
                                    				<th>星期四</th>
                                    				<th>星期五</th>
                                    				<th>星期六</th>
                                    				<th>星期日</th>
                                    			</tr>
                                    		</thead>
                                    		<tbody>
                                    			<tr>
                                    				<th>上午</th>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',1_1,') !== false)}checked="checked"{/if} name="jztime" id="chk_1_1" value="1_1" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',2_1,') !== false)}checked="checked"{/if} name="jztime" id="chk_2_1" value="2_1" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',3_1,') !== false)}checked="checked"{/if} name="jztime" id="chk_3_1" value="3_1" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',4_1,') !== false)}checked="checked"{/if} name="jztime" id="chk_4_1" value="4_1" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',5_1,') !== false)}checked="checked"{/if} name="jztime" id="chk_5_1" value="5_1" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',6_1,') !== false)}checked="checked"{/if} name="jztime" id="chk_6_1" value="6_1" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',7_1,') !== false)}checked="checked"{/if} name="jztime" id="chk_7_1" value="7_1" /></td>
                                    			</tr>
                                    			<tr>
                                    				<th>下午</th>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',1_2,') !== false)}checked="checked"{/if} name="jztime" id="chk_1_2" value="1_2" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',2_2,') !== false)}checked="checked"{/if} name="jztime" id="chk_2_2" value="2_2" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',3_2,') !== false)}checked="checked"{/if} name="jztime" id="chk_3_2" value="3_2" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',4_2,') !== false)}checked="checked"{/if} name="jztime" id="chk_4_2" value="4_2" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',5_2,') !== false)}checked="checked"{/if} name="jztime" id="chk_5_2" value="5_2" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',6_2,') !== false)}checked="checked"{/if} name="jztime" id="chk_6_2" value="6_2" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',7_2,') !== false)}checked="checked"{/if} name="jztime" id="chk_7_2" value="7_2" /></td>
                                    			</tr>
                                    			<tr>
                                    				<th>晚上</th>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',1_3,') !== false)}checked="checked"{/if} name="jztime" id="chk_1_3" value="1_3" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',2_3,') !== false)}checked="checked"{/if} name="jztime" id="chk_2_3" value="2_3" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',3_3,') !== false)}checked="checked"{/if} name="jztime" id="chk_3_3" value="3_3" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',4_3,') !== false)}checked="checked"{/if} name="jztime" id="chk_4_3" value="4_3" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',5_3,') !== false)}checked="checked"{/if} name="jztime" id="chk_5_3" value="5_3" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',6_3,') !== false)}checked="checked"{/if} name="jztime" id="chk_6_3" value="6_3" /></td>
                                    				<td><input type="checkbox" {if(strpos($rs['jztime'],',7_3,') !== false)}checked="checked"{/if} name="jztime" id="chk_7_3" value="7_3" /></td>
                                    			</tr>
                                    		</tbody>
                                    	</table>
									</div>
								</div>
								{/if}
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="type">是否开放</label>
									<div class="col-sm-10">
										<div class="radio">
											<label>
												<input type="radio" name="type" value="0" {if(@$rs['type'] != 1)}checked{/if}>
												开放
											</label>
										</div>
										<div class="radio">
											<label>
												<input type="radio" name="type" value="1" {if(@$rs['type'] == 1)}checked{/if}>
												保密
											</label>
										</div>
									</div>
								</div>
								
								<div class="form-group-separator"></div>
								
								<div class="form-group">
									<div class="col-sm-10">
										<button class="btn btn-info btn-single pull-right" onClick="tijiao()" type="button">提交</button>
									</div>
								</div>
							</form>
							
						</div>
					</div>
					
				</div>
			</div>
			{/if}
			
			<script>
			function gbdz(id,nn,cc){//改变地址
				$.post('{$_url}/admin/?act=get_diqu',{id:id},function(data){
					$("#"+nn).html(data);
					if(cc != ''){
						$("#"+cc).html('<option value="0">请选择</option>');
					}
				});
			}
			function gbzw(id){//改变职位
				$.post('{$_url}/admin/?act=get_zhiwei',{id:id},function(data){
					$("#zhiwei").html(data);
				});
			}
			function sctp(id,src){//上传头像
				art.dialog.open('{$_url}/admin/?act=upfile&id='+id+'&type=1&src='+src+'{$gnpd}',{title:'',width:'600px',lock:true},false);
			}
			function tijiao(){
				var name = $("#name").val();
				var touxiang = $("#touxiang").val();
				var sex = $('input:radio[name=sex]:checked').val();
				var minzu = $("#minzu").val();
				var cstime = $("#cstime").val();
				var xsheng = $("#xsheng").val();
				var xshi = $("#xshi").val();
				var xqu = $("#xqu").val();
				var xsq = $("#xsq").val();
				var hksheng = $("#hksheng").val();
				var hkshi = $("#hkshi").val();
				var hkqu = $("#hkqu").val();
				var hk = $("#hk").val();
				var zhuanye = $("#zhuanye").val();
				var xueli = $("#xueli").val();
				var shengao = $("#shengao").val();
				var tizhong = $("#tizhong").val();
				var email = $("#email").val();
				var phone = $("#phone").val();
				var jieshao = $("#jieshao").val();
				var zwlb = $("#zwlb").val();
				var zhiwei = $("#zhiwei").val();
				var money = $("#money").val();
				var danwei = $("#danwei").val();
				var qzsheng = $("#qzsheng").val();
				var qzshi = $("#qzshi").val();
				var qzqu = $("#qzqu").val();
				var qzsq = $("#qzsq").val();
				var gzjl = $("#gzjl").val();
				{if($rs['zt'] == 1)}
				var gzjy = 0;
				var title = '';
				var shenfen = $('input:radio[name=shenfen]:checked').val();
				var youxiao = $("#youxiao").val();
				var check = $('input:checkbox[name="jztime"]:checked');
				var jztime = ',';
				check.each(function(i){
					jztime += this.value + ',';
				});
				if(jztime == ','){
					jztime = '';
				}
				{else}
				var gzjy = $("#gzjy").val();
				var title = $("#title").val();
				var shenfen = 0;
				var youxiao = '';
				var jztime = '';
				{/if}
				var type = $('input:radio[name=type]:checked').val();
				$.post('{$_url}/admin/?act=recruit&met=resume_bj{$gnpd}',{id:{$rs['id']},uid:{$rs['uid']},
					name:name,touxiang:touxiang,sex:sex,minzu:minzu,cstime:cstime,xsheng:xsheng,xshi:xshi,xqu:xqu,
					xsq:xsq,hksheng:hksheng,hkshi:hkshi,hkqu:hkqu,hk:hk,zhuanye:zhuanye,xueli:xueli,shengao:shengao,
					tizhong:tizhong,email:email,phone:phone,jieshao:jieshao,gzjy:gzjy,shenfen:shenfen,title:title,
					zwlb:zwlb,zhiwei:zhiwei,money:money,danwei:danwei,qzsheng:qzsheng,qzshi:qzshi,qzqu:qzqu,qzsq:qzsq,
					gzjl:gzjl,youxiao:youxiao,jztime:jztime,type:type},
					function(data){
						showAjaxModal(data);
						if(data == '修改成功'){
							$("#queding").attr("onclick","tiao('{$_url}/admin/?act=recruit&met=resume_update&id={$rs['id']}&uid={$rs['uid']}{$gnpd}')");
						}
				});
			}
			function showAjaxModal(data){//ajax弹窗
				jQuery('#modal-7').modal('show', {backdrop: 'static'});
				jQuery('#modal-7 .modal-body').html(data);
			}
			function tiao(url){//创建成功跳转
				window.location.href=url;
			}
			</script>
			
		{temp('admin/foot')}
	
	<!-- Modal 7 (Ajax Modal)-->
	<div class="modal fade" id="modal-7">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h4 class="modal-title">{$tit}</h4>
				</div>
				<div class="modal-body">
					Content is loading...
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-info" data-dismiss="modal" id="queding">确定</button>
				</div>
			</div>
		</div>
	</div>
	
	<!-- Bottom Scripts -->
	<script src="{$adstyle}/js/bootstrap.min.js"></script>
	<script src="{$adstyle}/js/TweenMax.min.js"></script>
	<script src="{$adstyle}/js/resizeable.js"></script>
	<script src="{$adstyle}/js/joinable.js"></script>
	<script src="{$adstyle}/js/xenon-api.js"></script>
	<script src="{$adstyle}/js/xenon-toggles.js"></script>

	<!-- Imported scripts on this page -->
	<script src="{$adstyle}/js/datepicker/bootstrap-datepicker.js"></script>

	<!-- JavaScripts initializations and stuff -->
	<script src="{$adstyle}/js/xenon-custom.js"></script>

</body>
</html>